package com.chengma.domain;

import com.chengma.common.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 富文本对象 tb_editor_data
 * 
 * @author tck
 * @date 2025-03-19
 */
public class TbEditorData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** html渲染数据 */
    private String html;

    /** 编辑器渲染数据 */
    private String raw;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHtml(String html) 
    {
        this.html = html;
    }

    public String getHtml() 
    {
        return html;
    }
    public void setRaw(String raw) 
    {
        this.raw = raw;
    }

    public String getRaw() 
    {
        return raw;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("html", getHtml())
            .append("raw", getRaw())
            .toString();
    }
}
